package com.example.demod.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @GetMapping("/hello")
    public String hello(){
        return "hello word111";
    }
    @GetMapping("/test")
    public String test(){
        return "test";
    }
    @GetMapping("/user")
    public String user(){
        return "hello, users!";
    }
    @PostMapping("/user/post")
    public String users(String name){
        return "hello"+name+"!";
    }
    @PostMapping("/list")
    public String list(){
        return "this is my data";
    }

}
